package objects;


public class SerialObject {

	private int id;
	private String serialTitle;
	private String serialOrgTitle;
	private int yearStart;
	private int yearEnd;
	private String descr;
	private int serial2category;
	private boolean selected = false;
	private String picPath;
	
	public SerialObject() {
		
	}
	
	public SerialObject(int id, String serialTitle, String serialOrgTitle, int yearStart, int yearEnd, String descr, int serial2category, String picPath) {
		super();
		this.id = id;
		this.serialTitle = serialTitle;
		this.serialOrgTitle = serialOrgTitle;
		this.yearStart = yearStart;
		this.yearEnd = yearEnd;
		this.descr = descr;
		this.serial2category = serial2category;
		this.picPath = picPath;
	}
	
	@Override
	public int hashCode() {
		final int prime = 31;
		int result = 1;
		result = prime * result + id;
		return result;
	}

	@Override
	public boolean equals(Object obj) {
		if (this == obj)
			return true;
		if (obj == null)
			return false;
		if (getClass() != obj.getClass())
			return false;
		SerialObject other = (SerialObject) obj;
		if (id != other.id)
			return false;
		return true;
	}

	public int getId() {
		return id;
	}
	public void setId(int id) {
		this.id = id;
	}
	public String getSerialTitle() {
		return serialTitle;
	}
	public void setSerialTitle(String serialTitle) {
		this.serialTitle = serialTitle;
	}
	public String getSerialOrgTitle() {
		return serialOrgTitle;
	}
	public void setSerialOrgTitle(String serialOrgTitle) {
		this.serialOrgTitle = serialOrgTitle;
	}
	public int getYearStart() {
		return yearStart;
	}
	public void setYearStart(int yearStart) {
		this.yearStart = yearStart;
	}
	public int getYearEnd() {
		return yearEnd;
	}
	public void setYearEnd(int yearEnd) {
		this.yearEnd = yearEnd;
	}
	public String getDescr() {
		return descr;
	}
	public void setDescr(String descr) {
		this.descr = descr;
	}

	public boolean isSelected() {
		return selected;
	}

	public void setSelected(boolean selected) {
		this.selected = selected;
	}

	public int getSerial2category() {
		return serial2category;
	}

	public void setSerial2category(int serial2category) {
		this.serial2category = serial2category;
	}

	public String getPicPath() {
		return picPath;
	}

	public void setPicPath(String picPath) {
		this.picPath = picPath;
	}
	
	
	
}
